<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>PMS</title>
    <link rel="stylesheet"  href="../static/layui/css/layui.css" data-th-href="@{/layui/css/layui.css}">
    <script src="../static/layui/layui.js" data-th-src="@{/layui/layui.js}"></script>
</head>
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">
    <div class="layui-header">
        <div class="layui-logo">考必胜管理系统</div>
        <!-- 头部区域（可配合layui已有的水平导航） -->

        <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item">
                <a href="javascript:;">
                    <img src="http://t.cn/RCzsdCq" class="layui-nav-img">
                    [[${session.LOGIN_STATUS}]]
                </a>

            </li>
            <li class="layui-nav-item"><a data-th-href="@{/logout}">注销</a></li>
        </ul>
    </div>

    <div class="layui-side layui-bg-black">

        <div class="layui-side-scroll">
            <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
            <ul class="layui-nav layui-nav-tree"  lay-filter="test">
                <li class="layui-nav-item layui-nav-itemed" data-th-each="menu : ${session.MENUS[-1]}">
                    <a  class="" data-th-href="${menu.url}?'javascript:;'" data-th-text="${menu.name}">权限管理</a>
                    <dl data-th-if="${not #lists.isEmpty(session.MENUS[menu.id])}" class="layui-nav-child">
                        <dd data-th-each="m:${session.MENUS[menu.id]}">
                            <a data-th-href="@{{url}(url=${m.url})}" data-th-text="${m.name}" target="mainBody" href="javascript:;">账号管理</a></dd>
                        <dd>

                    </dl>
                </li>
                <li class="layui-nav-item layui-nav-itemed">
                    <a class="" href="javascript:;">新增管理</a>
                    <dl class="layui-nav-child">
                        <dd><a data-th-href="@{/insertSch}" target="mainBody" href="javascript:;">新增学校</a></dd>
                        <dd><a data-th-href="@{/insertNew}" target="mainBody" href="javascript:;">新增新闻</a></dd>
                        <dd><a data-th-href="@{/insertLine}" target="mainBody" href="javascript:;">添加分数线1</a></dd>
                        <dd><a data-th-href="@{/insertLines}" target="mainBody" href="javascript:;">添加分数线多</a></dd>
                        <dd><a data-th-href="@{/insertBatchLine}" target="mainBody" href="javascript:;">添加批次线</a></dd>
                        <dd><a data-th-href="@{/insertActivation}" target="mainBody" href="javascript:;">添加VIP激活码</a></dd>
                    </dl>
                </li>

            </ul>
        </div>
    </div>

    <div class="layui-body" >
        <!-- 内容主体区域 -->
       <iframe name="mainBody" height="100%" width="100%"></iframe>
    </div>

    <div class="layui-footer">
        <!-- 底部固定区域 -->
        © layui.com - 底部固定区域
    </div>
</div>

<script>
    //JavaScript代码区域
    layui.use('element', function(){
        var element = layui.element;

    });
</script>
</body>
</html>